/**
    退货地址 组件
**/
(function(vc){

    vc.extends({
        propTypes: {
           callBackListener:vc.propTypes.string, //父组件名称
           callBackFunction:vc.propTypes.string //父组件监听方法
        },
        data:{
            viewShopReturnAddressInfo:{
                index:0,
                flowComponent:'viewShopReturnAddressInfo',
                name:'',
link:'',
address:'',
seq:'',

            }
        },
        _initMethod:function(){
            //根据请求参数查询 查询 业主信息
            $that._loadShopReturnAddressInfoData();
        },
        _initEvent:function(){
            vc.on('viewShopReturnAddressInfo','chooseShopReturnAddress',function(_app){
                vc.copyObject(_app, $that.viewShopReturnAddressInfo);
                vc.emit($props.callBackListener,$props.callBackFunction,$that.viewShopReturnAddressInfo);
            });

            vc.on('viewShopReturnAddressInfo', 'onIndex', function(_index){
                $that.viewShopReturnAddressInfo.index = _index;
            });

        },
        methods:{

            _openSelectShopReturnAddressInfoModel(){
                vc.emit('chooseShopReturnAddress','openChooseShopReturnAddressModel',{});
            },
            _openAddShopReturnAddressInfoModel(){
                vc.emit('addShopReturnAddress','openAddShopReturnAddressModal',{});
            },
            _loadShopReturnAddressInfoData:function(){

            }
        }
    });

})(window.vc);
